package main

import (
	"math/rand"
	"net/http"
)

const RedPacketsNum = 30000

const RedPacketMoney = RedPacketsNum * 10

const RedPacketAvgMoney = RedPacketMoney / RedPacketsNum

type RedPacketStatistics struct {
	GiveMoney     int
	GivePeopleNum int
	//version       int
}

type PeopleRedPacket struct {
	money float64
	time  string
}

type ReadPacketsInterface interface {
	GrabHandler(http.ResponseWriter, *http.Request)
}

func RandRedPacketMoney(min, max float64) float64 {
	return min + rand.Float64()*(max-min)
}
